package com.cy.train.business.service;

import com.cy.train.business.domain.DailyTrain;
import com.cy.train.business.domain.DailyTrainTicket;
import com.cy.train.business.req.DailyTrainTicketQueryReq;
import com.cy.train.business.req.DailyTrainTicketSaveReq;
import com.cy.train.business.resp.DailyTrainTicketQueryResp;
import com.cy.train.common.resp.PageResp;

import java.util.Date;

public interface DailyTrainTicketService {
    void save(DailyTrainTicketSaveReq req);

    PageResp<DailyTrainTicketQueryResp> queryList(DailyTrainTicketQueryReq req);

    PageResp<DailyTrainTicketQueryResp> queryListCache(DailyTrainTicketQueryReq req);

    void delete(Long id);

    void genDaily(DailyTrain dailyTrain, Date date, String trainCode);

    DailyTrainTicket selectUnique(Date date, String code, String start, String end);
}